"""Added position_number to Category

Revision ID: 1ac71244a30e
Revises: 5378e1eac5d3
Create Date: 2023-09-28 14:09:53.985490

"""
import sqlalchemy as sa
from alembic import op

# revision identifiers, used by Alembic.
revision = "1ac71244a30e"
down_revision = "5378e1eac5d3"
branch_labels = None
depends_on = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column(
        "category",
        sa.Column("position_number", sa.Integer(), server_default="0", nullable=False),
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column("category", "position_number")
    # ### end Alembic commands ###
